package classes;

import java.sql.Date;

public class HomeworkLecturer {
	
	int homeworkID;
	String homeworkName;
	int groupID; 
	String startTime;
	String endTime;
	String file;
	
	public HomeworkLecturer(int homeworkID, String homeworkName, int groupID, String startTime, String endTime, String file) {
		this.homeworkID = homeworkID;
		this.homeworkName = homeworkName;
		this.groupID = groupID;
		this.startTime = startTime;
		this.endTime = endTime;
		this.file = file;
	}
	
	public String getHomeworkName() {
		return homeworkName;
	}


	public int getGroupID() {
		return groupID;
	}

	
	public String getStartTime() {
		return startTime;
	}


	public String getEndTime() {
		return endTime;
	}


	public String getFile() {
		return file;
	}


	public int getHomeworkID() {
		return homeworkID;
	}

	
	public void update(String homeworkName, String startTime, String endTime, String file){
		this.homeworkName  = homeworkName;
		this.startTime = startTime;
		this.endTime = endTime;
		this.file = file;
		HomeworkManagerLecturer.updateHomework(homeworkID, homeworkName,groupID, startTime, endTime, file);
	}
	
	
	@Override
	public String toString() {
		String str = "homeworkID = " + homeworkID + " homeworkName = " + homeworkName + " groupID = " + groupID + 
					" startTime = " + startTime + " endTime = " + endTime + " filename = " + file;
		return str;
	}
	
}
